<script setup>
const handleWithdraw = () => {
  uni.showModal({
    title: '提交成功',
  });
};
</script>

<template>
<view class="back">
  <view class="all">
    <view class="form-container">
      <view class="form-item">
        <text class="label">不同意登记留校原因<text class="required-mark">*</text></text>
      </view>
    </view>
    <view class="text-box" >
      <input
          type="text"
          placeholder="请输入内容"
          class="input-control"
      />
    </view>
  </view>
  <view class="btn-container">
    <button class="withdraw-btn" @click="handleWithdraw"><view class="withdraw-text">提交</view></button>
  </view>
</view>
</template>

<style scoped>
.withdraw-btn {
  width: 348px;
  margin-left: 10px;
  height: 40px;
  background-image: linear-gradient(90deg, #6CA9FF 0%, #166AFF 100%);
  border-radius: 4px;
  margin-top: 15px;
}
.withdraw-text{
  width: 30px;
  height: 21px;
  font-family: PingFangSC-Medium;
  font-weight: 500;
  font-size: 15px;
  color: #FFFFFF;
  padding:1px 140px 1px;
}
.btn-container {
  display: flow-root;
  justify-content: center;
  width: 100%;
}
.back{
  background-color: #F2F4F7;
  width: 100%;
  height: 650px;
}
.text-box {
  width: 320px;
  height: 130px;
  background: #FFFFFF;
  border-radius: 4px;
  margin: 12px;
  padding: 12px;
  font-size: 10px;
  margin-bottom: 2px;
}
.form-container {
  margin: 0px;
  padding: 15px;
  margin-bottom: -30px;
}
.form-item {
  margin-bottom: 16px;
}
.label {
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 4px;
}
.required-mark {
  color: #ff5252;
  margin-left: 2px;
}
</style>